package resource;

import java.io.Serializable;

public class Bid implements Serializable{
	public int tourType;
	public boolean P1 = false, P2 = false;
	public int P3;
	
	public Bid(boolean P1, boolean P2, int P3, int tourType){
		this.P1 = P1;
		this.P2 = P2;
		this.P3 = P3;
		this.tourType = tourType;
	}
	
    @Override
    public boolean equals(Object o) {
        if (o instanceof Bid){
            Bid b = (Bid) o;
            
            if (this.P1 == b.P1 && this.P2 == b.P2 && this.P3 == b.P3 && this.tourType == b.tourType) {
                return true;
            }
            else 
            	return false;
        } else {
            return super.equals(o);
        }
    }
    
    @Override
    public String toString() {
    	// TODO Auto-generated method stub
    	return P1 + " " + P2 + " " + P3 + " " + tourType; 
    }
}
